package com.wit.witmg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author bob
 * @since 2025-02-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TOrderp对象", description="订单分解表（经营数据/流水）")
public class TOrderp implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    @ApiModelProperty(value = "状态")
    private Integer stat;

    @ApiModelProperty(value = "订单id")
    private Integer pid;

    @ApiModelProperty(value = "产品(ERP)编码")
    private String bn;

    @ApiModelProperty(value = "产品名称")
    private String na;

    @ApiModelProperty(value = "型号规格")
    private String size;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "计量单位")
    private String unit;

    @ApiModelProperty(value = "需求数量")
    private Double nqt;

    @ApiModelProperty(value = "己发货数量")
    private Double oqt;

    @ApiModelProperty(value = "已签收数量")
    private Double oqt2;

    @ApiModelProperty(value = "已开票数量")
    private Double oqt3;

    @ApiModelProperty(value = "原价")
    private Double price;

    @ApiModelProperty(value = "优惠价")
    private Double prc;

    @ApiModelProperty(value = "优惠后金额小计")
    private Double amount;

    @ApiModelProperty(value = "需求时间")
    private Date ndate;

    @ApiModelProperty(value = "价格类型")
    private Integer pricetp;

    @ApiModelProperty(value = "客户编码")
    private String cbn;

    @ApiModelProperty(value = "归属部门id")
    private Integer oid;

    @ApiModelProperty(value = "录入人")
    private Long guid;

    private Double weight;//单重

}
